package com.tgjorgoski.spellcheck.highlight;

import java.util.*;

/**
 * 
 * 
 * @author Tanasije Gjorgoski <tgjorgoski@novizio.com>
 */
public abstract class NodeSectionsIterator {
    public abstract boolean hasNext();
    public abstract NodeSection next();
    
	static NodeSectionsIterator wrap(final Iterator iterator) {
    	return new NodeSectionsIterator() {
			public boolean hasNext() {
				return iterator.hasNext();
			}
			public NodeSection next() {
				return (NodeSection)iterator.next();
			}
		};
    }
}
